# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-tokenize-rt
_pkgname=tokenize_rt
pkgver=6.2.0
pkgrel=1
pkgdesc='A wrapper around the stdlib `tokenize` which roundtrips.'
arch=('any')
url='https://pypi.org/project/tokenize-rt/#files'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/tokenize_rt-$pkgver.tar.gz")
sha512sums=('9623edb7bc7ba37e68c276fefb83eb4a3655ff88e650287279fe0537f34fe31b38fdd5d60a9c352aff37d2b0f4c84ca5bd0317cba9722f4b53c169d7acaf9abe')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

